/**
 * @(#)HomeController.java Jan 31, 2015 1.0
 * 巴拉提(balati@zkingsoft.com) 
 * 湖南卓景京信息技术有限公司
 * Copyright 2015 巴拉提. All rights reserved.
 * zKingSoft PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.wenwu.controller.common;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller(value = "HomeController")
@RequestMapping(value = "/")
public class HomeController {
	Logger log = Logger.getLogger(this.getClass());

	@RequestMapping(value = "/mgr/home")
	public String initHomePage(Model model) {
		model.addAttribute("message", "Welcome to Relics Manager");
		return "home";
	}

	@RequestMapping(value = "/mgr/index")
	public String initIndexPage(Model model) {
		return "index";
	}

	// 进入图片上传提交地址页面
	@RequestMapping(value = "/js/scripts/plugin/ueditor/jsp/imageUp")
	public String imageUp(Model model) {
		return "uploadJsp/imageUp";
	}

	// 进入附件上传提交地址页面
	@RequestMapping(value = "/js/scripts/plugin/ueditor/jsp/fileUp")
	public String fileUp(Model model) {
		return "uploadJsp/fileUp";
	}

	@RequestMapping(value = "/mgr/fileupload")
	public String initPage() {
		log.info("进入附件上传页面...");
		return "test/fileupload";
	}
}
